<?php

// confirm.php
// Michael Baker
// 2010.07.23
//
// confirmation page

session_start();

define("IN_MDM", true);
define("CUR_PAGE_TITLE", "Confirmation");

include '../includes/all.php';
include 'inc/header.php';

if ( $_GET[ "confirm" ] )
{
  header( "Location: " . $_SESSION["to"] );
  unset( $_SESSION["to"] );
  unset( $_SESSION["from"] );
  unset( $_SESSION["confirm_msg"] );
  
  die;
}

if ( $_GET[ "cancel" ] ) 
{
  header( "Location: " . $_SESSION["from"] );
  unset( $_SESSION["to"] );
  unset( $_SESSION["from"] );
  unset( $_SESSION["confirm_msg"] );
  
  die;
}

?>
<form id="confirm" method="get" action="confirm.php">
<fieldset>
  <h1>Confirm</h1>
  <p><?php echo $_SESSION["confirm_msg"]; ?></p>
  <div style="text-align: center;">
    <input type="submit" name="confirm" value="Yes" class="button2" />&nbsp;
    <input type="submit" name="cancel" value="No" class="button2" />
  </div>
</fieldset>

<?php include 'inc/footer.php'; ?>